package com.demonzym.framework.net.http;

import java.io.InputStream;

public class HttpResponse {
	public HttpResponse(HttpRequest hr, MyHttpClient http2, byte[] data2) {
		request = hr;
		http = http2;
		data = data2;
	}
	public HttpResponse(MyHttpClient http2, byte[] data2) {
		http = http2;
		data = data2;
	}
	public HttpResponse(HttpRequest re, MyHttpClient http2, InputStream is) {
		request = re;
		http = http2;
		inputstream = is;
	}
	public HttpResponse(HttpRequest re, long c, long m) {
		request = re;
		current = c;
		max = m;
	}
	public HttpResponse(HttpRequest request2, int errCode, MyHttpClient http2,
			byte[] errStr) {
		request = request2;
		http = http2;
		errorcode = errCode;
		data = errStr;
	}
	public int errorcode;
	public HttpRequest request;
	public MyHttpClient http;
	public byte[] data;
	public InputStream inputstream;
	public long current, max;
}
